﻿using System;
using System.Web;

public partial class Inicio : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnBuscar2_Click(object sender, EventArgs e)
    {
        string query = HttpUtility.UrlEncode(txtBusca.Text);
        string url = "pesquisar.aspx?" + (string.IsNullOrEmpty(query) ? string.Empty : "query=" + query);
        Response.Redirect(url);
    }
}